

row = 9
while 0 < row < 10 :
    # 打印空白区域，保证格式化输出
    block = row
    while block < 9 :
        print(end = "        ")
        block += 1

    col = row
    while 0 < col <= row:
        res = row * col
        print('{0}*{1}={2:2d}'.format(col, row, res),end = "  ")
        col -= 1
    row -= 1
    print()